package controllers

import (
	"cm2/exception"
	"cm2/service/irisweb"

	"cm2/service"

	"github.com/kataras/iris"
)

// ListWorker 请求任务控制器
func ListWorker(ctx iris.Context, app *irisweb.Webapp) (interface{}, *exception.Exception) {
	return service.DefaultTaskServer().Clients(), nil
}
